<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta charset="UTF-8">
	<title>安装通-中国智慧安装采供服务平台</title> 
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
	<meta name="description" content="安装通（azt365.com）中国大型的b2b电子商务智慧化平台,整合了国内安装行业内采购商与供应商,打通上下游产业链,信息透明共享,通过云平台,大数据,为各大企业供应商提供产品信息、企业推广,为您提供全面的安装行业资讯金融服务以及线上支付.">
	<meta name="keywords" content="安装通,azt365,江苏b2b电子商务,江苏建筑采供批发平台,江苏弱电批发,江苏消防报警系统,江苏智慧安装建筑安装,江苏安防监控系统,江苏通风设备安装,江苏通风工程安装,江苏通风工程施工,江苏消防工程材料批发,江苏消防工程材料">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    <link href="/res/css/common/style.css" rel="stylesheet">
	<link href="/res/css/common/css.css" rel="stylesheet">
	<link href="/res/css/common/azt.css" rel="stylesheet">
	<style type="text/css">
	button { border: none; }
	input[type="button"] { border: none; }
	</style>
	<input id="telOrBox" type="hidden"/>
  </head>
  <body>  
  <div style="height:90px;background:white;">
	<div class="top">
		<img onclick="window.open('/')" src="/res/images/logoAzt/indexlogo.jpg" style="margin-top:13.5px;float:left;"/>
		<big style="margin-top: 13.5px;">找回密码</big>
		<small>400-848-1365</small>
		<img src="/res/images/common/a_06.jpg" class="topImgSec"/>
	 </div>
  </div> 
   <hr style="border-top: 1px solid #ebebeb;">
  <div class="rebackPass">
	<h5>
	
		<img src="/res/images/common/step/1.jpg"/>
	</h5> 
	<div class="passReset">
		<label>账号：</label>
		<input type="text" placeholder="手机/邮箱" id="loginAccont" name="username" onblur="checkForm('username')"/>
		 
		<div class="passBackNotice" style="top: 8px;" id="userNameNotice">
			<img src="/res/images/oparaStatus/noticeCl_11.jpg"/>
			<small></small>
		</div>
		<div>
			<label style="margin-top:20px;">验证码：</label>
			<input type="text" style="width:135px;" onblur="checkForm('code')" id="code" name="code" placeholder="验证码"/>
			 
			<div id="boxOrTel" style="position: relative;">
                <img src="/authImage?w=88&h=40&n=iforgotCode" onclick="randomPicCode()">
				<a class="changePic" onclick="randomPicCode()" style="top:10px;right: -45px;">换一张</a>
			</div>
            <div class="passBackNotice" style="top: 68px;" id="codeNotice">
                <img src="/res/images/oparaStatus/noticeCl_11.jpg"/>
                <small></small>
            </div>
		</div> 
		<label></label>
		<input id="nextStepBtn" type="button" value="下一步" style="width: 135px;display: inline-block;height: 40px;" onclick="checkForm()"/>
	</div> 
  </div>
  <div class="foot">
      <div class="footCot">
          <a href="/sysfoot/helpCenter?id=3287" target="_blank">服务条款&nbsp;&nbsp;|&nbsp;&nbsp;</a>
          <a href="/sysfoot/helpCenter?id=3288" target="_blank">关于我们&nbsp;&nbsp;|&nbsp;&nbsp;</a>
          <a href="/sysfoot/helpCenter?id=3283" target="_blank">联系我们&nbsp;&nbsp;|&nbsp;&nbsp;</a>
          <a href="/sysfoot/helpCenter" target="_blank">帮助中心</a>
      </div>
	<h6 class="footCot" style="height:30px;line-height:30px;color:#999999;">
		 沪ICP备15024004号-1 © 2015-2017 azt365.com 版权所有
	</h6>
  </div>
  </body>
  <script type="text/javascript" src="/res/js/common/jquery.1.9.1.min.js"></script>
  <#--<script type="text/javascript" src="/res/js/common/azt.js"></script>-->
<script type="text/javascript" src="/res/js/common/util.js"></script>
  <script type="text/javascript">
	function randomPicCode() {
		$('#boxOrTel img').prop('src', '/authImage?w=88&h=40&n=iforgotCode&c=' + Math.random());
	}

	function checkForm(field) {
        var username = $('#loginAccont').val();
        var code = $('#code').val();
		if(!field) {
			field = 'username,code';
		}
		if(field.indexOf('username') >= 0) {
			//校验用户名
            if($.trim(username) == '') {
                showUserNameError("请输入手机号或邮箱");
                return;
            }
            if(!(isMobile(username) || isEmail(username))) {
                showUserNameError("请输入正确的手机号或邮箱");
                return;
            }
		}
		if(field.indexOf('code') >= 0) {
            if($.trim(code) == '') {
                showCodeError("请输入验证码");
                return;
            }
		}

        $.ajax({
            url: '/user/iforgotUserNameCheck',
            type: 'post',
            dataType: 'json',
            data: {field : field, username: username, code : code},
            success: function (data) {
				if(data) {
					var flag = 0;
					if(data.user) {
						if(data.user == 'success') {
							flag ++;
                            clearUserNameError();
						} else {
                            showUserNameError(data.user);
						}
					}
                    if(data.code) {
                        if(data.code == 'success') {
							flag ++;
                            clearCodeError();
                        } else {
                            showCodeError(data.code);
                        }
                    }
					if(flag == 2) {
						//点击下一步且验证全部通过
						window.location.href = data.url;
					}
				}
            }
        });
	}

	  function showUserNameError(msg) {
          $('#userNameNotice small').html(msg);
          $('#userNameNotice').show();
		  $('#nextStepBtn').prop('disabled', true);
	  }

	  function showCodeError(msg) {
          $('#codeNotice small').html(msg);
          $('#codeNotice').show();
          $('#nextStepBtn').prop('disabled', true);
	  }

	  function clearUserNameError() {
          $('#userNameNotice small').html('');
          $('#userNameNotice').hide();
		  if(!$('#userNameNotice').is(":visible") && !$('#userNameNotice').is(":visible")) {
              $('#nextStepBtn').prop('disabled', false);
          }
	  }

    function clearCodeError() {
        $('#codeNotice small').html('');
        $('#codeNotice').hide();
        if(!$('#userNameNotice').is(":visible") && !$('#userNameNotice').is(":visible")) {
            $('#nextStepBtn').prop('disabled', false);
        }
    }
  </script>
  
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>
<div class="cnzz" style="display:none;"><script src="http://s11.cnzz.com/z_stat.php?id=1256097295&web_id=1256097295" type="text/javascript"></script></div>
  
</html>